Bentley Automation Service Help

To Import a Transformation Script into ProjectWise and Create a Test Transformation Job

This procedure assumes / requires that you have already created a local transformation script in Bentley i-model Transformer. For this example you can import one of the example scripts and datasets delivered with Bentley i-model Transformer.

  1. In the Bentley Automation Service Browser, right-click the Job Definitions folder and select New > iCS for i-models Job.
  2. In the ProjectWise Datasource Selection dialog, select and log in to the datasource containing the documents you want to process.


    Note: In order to log in, the following must be true:
    • The specified user must have non-expiring credentials.
    • The ProjectWise working directory of the specified user must exist on this computer.
    • The computer you are working from must be included in the selected server's Trusted Server list.

    If the user is based on a Windows account, the user name syntax is Domain\user.name.

    If your datasource is not in this list, you need to configure your ProjectWise network on this computer.

    See the Bentley Automation Service Implementation Guide if you need to configure any of these things.

    After logging in, the Job Builder dialog opens a blank job definition form for you to configure.

    For this procedure you can skip the Input Files and Application Configuration tabs; no configuration is required on those tabs for this example.

  3. On the iCS for i-models tab, do the following:
    1. Turn on Associate transformation template.
    2. Click Import.

      The Select Template dialog opens for you to select a local transformation script (XML file).

      A default installation of Bentley i-model Transformer installs the example datasets to:

      C:\ProgramData\Bentley\imodelTransformer\Datasets

      Each dataset has an example transformation script, which is located in the config folder under each dataset folder. For example:

      C:\ProgramData\Bentley\imodelTransformer\Datasets\FilterAugment\config\CurtainWallFilter.xml

    3. Select the local transformation script you want to import and click Open.

      The Select Root Import Location dialog opens. You can right-click in this dialog to create a new folder for transformation templates, or you can use any existing folder.

    4. Select the root folder in ProjectWise where the script and its related files will be imported to and click OK.

      The Modify Default Import Locations dialog opens. By default, the local source folder structure is mirrored under the selected root import location in ProjectWise, and the local files are imported into the mirrored folders in ProjectWise. You can keep the default target folders as is, or you can change the target folder in ProjectWise for any part of the template. The transformation template includes the transformation script and the input files processed by it, which can include i-models, schemas, spreadsheets, item queries, and so on.

    5. For this example, leave the default target folders as is and click OK.

      Bentley i-model Transformer's Transform Builder opens with the transformation template loaded.

    6. Leave the default settings as they are and click Close.

    The transformation template is loaded.

  4. Click OK on the Job Builder dialog.
  5. In the Save As dialog, enter a name for the job and click Save.

The job is saved. Now you can run this job as usual (right-click the job and select Start > Full) to test the results.